public class HomeWork01 {
	public static void main(String[] args) {
		double money = 100000;
		int count = 0;
		while (money > 1000) {
			if(money > 50000){
				count++;
				money = money - (money * 5 / 100);
			}else {
				count++;
				money -= 1000;
			}
		}
		System.out.println(count);
	}
}